import React from 'react'
import {useLocation} from 'react-router-dom'
import qs from 'qs'
export default function Music() {
    const location = useLocation()
    const {state}= location
    console.log(location);
  return (
    <div>
        歌曲名称：
        <ul>
          {
            state.map(item=><li>{item.song}</li>)
          }
        </ul>
        
    </div>
  )
}
